home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C ++ / Applications / TimGA 1.2.1 / .cp / CNode.cp < prev    next >
Encoding:
Text File  |  1997-07-16  |  781 b   |  28 lines  |  [TEXT/CWIE]

  1. // ===========================================================================
  2. //    CNode.cp        ©1995-97 Timo Eloranta        All rights reserved.
  3. // ===========================================================================
  4. //    A simple node class. Most functions in the header (inlined).
  5.  
  6. #include "CNode.h"
  7.  
  8. // ---------------------------------------------------------------------------
  9. //        • Draw
  10. //
  11. //          Called by:    CGraphNodes::DrawAll
  12. // ---------------------------------------------------------------------------
  13. //    Draw this node. 
  14.  
  15. void 
  16. CNode::Draw( const    Rect &inOneOneRect,
  17.                     Int16 inSquareSize) const
  18. {
  19.     Rect    theNodeRect = inOneOneRect;
  20.  
  21.     ::OffsetRect(     &theNodeRect,
  22.                     (mPosX - 1) * inSquareSize,
  23.                     (mPosY - 1) * inSquareSize );
  24.             
  25.     ::PaintOval    ( &theNodeRect );
  26. }
  27.  
  28.